package ch8.Phone;

//智能机
public class AptitudeHandSet extends Phone implements Interne, Photo, Video {
    private double price;//价格
    private String CDMA;//网络类型

    public AptitudeHandSet(String brand, String type, double price, String CDMA) {
        super(brand, type);
        this.price = price;
        this.CDMA = CDMA;
    }
public void show(){
    System.out.println("这个智能机的品牌是："+this.getBrand()+",型号是："+
            this.getType()+",价格是："+this.price+"元，"+"它是一部"+this.CDMA+"智能手机。它有很多功能：");
    this.call();
    this.messages();
    this.interne();
    this.photo();
    this.video();
}
    @Override
    public void interne() {
        System.out.println("上网。");
    }

    @Override
    public void call() {
        System.out.println("打电话。");
    }

    @Override
    public void messages() {
        System.out.println("发短信。");
    }

    @Override
    public void photo() {
        System.out.println("拍照片。");
    }

    @Override
    public void video() {
        System.out.println("播放视频。");
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getCDMA() {
        return CDMA;
    }

    public void setCDMA(String CDMA) {
        this.CDMA = CDMA;
    }


}
